import request from '@/utils/request'

let jingpaiApi = {
// 竞价列表 待报价
  getList(params){
    // /backClue/bidding/list
    return request({
      url: '/backClue/bidding/list',
      method: 'get',
      params

    })
  },
  // 添加商品到竞价列表 /goods/info/backClue
  addGoodsForJingjia(params){
    return request({
      url: '/goods/info/backClue',
      method: 'get',
      params

    })
  },
  // 查询竞价商品信息
  getbackClueInfo(id){
    return request({
      url: `/backClue/bidding/${id}`,
      method: 'get'

    })
  },
  // 竞拍出价
  // /backClueQuotation
  backClueQuotation(data){
    return request({
      url: `/backClueQuotation`,
      method: 'post',
      data

    })
  },

  // 我发布的竞拍 /backClue/bidding/myList
  backCluemyList(params){
    return request({
      url: '/backClue/bidding/myList',
      method: 'get',
      params

    })
  },
  // 我发布的竞拍详情
  getbackCluemyListInfo(id){
    return request({
      url: `/backClue/bidding/myList/${id}`,
      method: 'get'

    })
  },
  // 接受报价  /backClue/bidding/acceptPrice
  getbackCluemyListJieshou(data){
    return request({
      url: `/backClue/bidding/acceptPrice`,
      method: 'post',
      data

    })
  },
// 我的出价列表
  backCluemyChuJia(params){
    return request({
      url: '/backClue/bidding/myChuJia',
      method: 'get',
      params

    })
  },
  // jingpai统计
  backCluebiddingTongji(params){
    return request({
      url: '/backClue/bidding/tongji',
      method: 'get',
      params

    })
  },

  //查询是否有竞拍回收客服
   backClueCustomer(){
    return request({
      url: '/backClue/check/customer',
      method: 'get',
    })
  },
}
export default jingpaiApi

